/**
 * 离职套件
 */
export const turnoverChildren = [
    {
        label: '离职员工',
        formId: 'employeeName',
        tag: 'Input',
        autofill: true, // 是否自动获取
        options: {
            disabled: true,
            placeholder: '系统自动获取'
        },
        isSummary: true
    },
    {
        label: '组织机构',
        formId: 'organizationName',
        tag: 'Input',
        autofill: true,
        options: {
            disabled: true,
            placeholder: '系统自动获取'
        }
    },
    {
        label: '职位',
        formId: 'positionName',
        tag: 'Input',
        autofill: true,
        options: {
            disabled: true,
            placeholder: '系统自动获取'
        },
        isSummary: true
    },
    {
        label: '职级',
        formId: 'rankValue',
        tag: 'Input',
        autofill: true,
        proCondition: true,
        isUsed: false,
        conditionShowOption: { valueMode: 'multiple', showType: 'select', fetchType: 'grade' },
        options: {
            disabled: true,
            placeholder: '系统自动获取'
        },
        isSummary: true
    },
    {
        label: '入职时间',
        formId: 'timeOfEntry',
        tag: 'Input',
        autofill: true,
        options: {
            disabled: true,
            placeholder: '系统自动获取'
        }
    },
    {
        label: '离职日期',
        formId: 'hopeResignationDate',
        tag: 'Date',
        rules: [
            {
                required: true,
                message: '请选择离职日期'
            }
        ],
        options: {
            disabled: true,
            placeholder: '离职日期'
        },
        isSummary: true
    },
    {
        label: '离职原因',
        formId: 'reason',
        tag: 'LeaveReason',
        customValidator: 'LeaveReason',
        rules: [
            {
                required: true,
                message: '请选择'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请选择'
        }
    }
];

export const turnoverControl = {
    label: '离职-员工申请',
    cmpType: 'custom',
    formId: '',
    key: 'Turnover',
    tag: 'Turnover',
    tagIcon: 'iconprocess_common_leave_staff_icon',
    proCondition: true,
    isUsed: false,
    children: turnoverChildren
};
